package com.cloud.handle;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.cloud.entity.CommonResult;

/**
 * <h3>springcloud02</h3>
 * <p></p>
 *
 * @author : zhengyue
 * @date : 2020-06-29 16:19
 **/
public class CustomerBlockHandle {
    public static CommonResult handleException(BlockException exception) {
        return new CommonResult(444, "Global1：" + exception.getClass().getCanonicalName() + "\t服务不可用");
    }

    public static CommonResult handleException2(BlockException exception) {
        return new CommonResult(444, "Global2：" + exception.getClass().getCanonicalName() + "\t服务不可用");
    }
}
